import express from 'express'
const router = express.Router();
import { query } from 'express-validator';

import {getTaskList} from '../services/taskList'

const getTaskListCheck =[
    query('pageNo').not().isEmpty().withMessage('缺少pageNo字段'),
    query('limit').not().isEmpty().withMessage('缺少limit字段')
]

router.get('/getTaskList/:miniprogramType', getTaskListCheck,  getTaskList)

export default router